//
//  TaskWithGetGoodsDetail.m
//  DuBai
//
//  Created by darktm on 14-3-19.
//  Copyright (c) 2014年 darktm. All rights reserved.
//

#import "TaskWithGetGoodsDetail.h"

#import "GoodsDetail.h"

@implementation TaskWithGetGoodsDetail

-(void)prepare{
//    NSMutableDictionary *mDic = [NSMutableDictionary dictionary];
//        
//    [mDic setValue:self.goodid forKey:@"id"];
    
    NSString *url = [Configure getGoodsDetail];
    url = [NSString stringWithFormat:@"%@?id=%@",url,self.goodid];
    [self startAsyncWithParams:nil withMethod:@"GET" withURL:url];
}
-(id)parese{
    
    
    GoodsDetail *detail = [[GoodsDetail alloc] initWithReflectData:self.rcvData];
    
    DLog(@"%@",[self.rcvData[@"sales"] class]);
    
    return self.rcvData ? detail : nil;
}

@end
